import { RouteRecordRaw } from 'vue-router'

// 基础路由

export const constantRouterMap: RouteRecordRaw[] = [
  {
    path: '/',
    redirect: '/element/table'
  },
  {
    path: '/layout',
    name: 'layout',
    component: () => import('/src/layout/index.vue'),
    children: [
      {
        path: '/element/table',
        name: 'table',
        meta: {
          id: 1,
          title: '表格组件',
        },
        component: () => import('/src/views/table/index.vue')
      },
      {
        path: '/element/icon',
        name: 'icon',
        meta: {
          id: 2,
          title: '图标组件',
        },
        component: () => import('/src/views/icon/index.vue')
      },
    ]
  },
  {
    path: '/404',
    name: '404',
    component: () => import('/src/errorPages/404.vue')
  }

]


// 白名单(路径)

export const whiteList = ['/login', '/404']